import request from '@/utils/request'

// 查询五步教学法列表
export function listPedagogy(query) {
  return request({
    url: '/school/pedagogy/list',
    method: 'get',
    params: query
  })
}

// 查询五步教学法详细
export function getPedagogy(id) {
  return request({
    url: '/school/pedagogy/' + id,
    method: 'get'
  })
}

// 新增五步教学法
export function addPedagogy(data) {
  return request({
    url: '/school/pedagogy',
    method: 'post',
    data: data
  })
}

// 修改五步教学法
export function updatePedagogy(data) {
  return request({
    url: '/school/pedagogy',
    method: 'put',
    data: data
  })
}

// 删除五步教学法
export function delPedagogy(id) {
  return request({
    url: '/school/pedagogy/' + id,
    method: 'delete'
  })
}
